<?php
	
	session_start();
	require("connect.php");
	$link = connect_APO();

	$type= $_SESSION['type'];
	
	if (!session_is_registered('ID')) :
		header('Location: login.php');
	endif;
	
	if ($type != 'coordinator'){
		header('Location: index.php');
	}
	
	require("header+logoutB.php");
	headerL();
	
	$personID = $_GET['new_MC'];
	
	$sql="SELECT `Fname`, `Lname` FROM `users` WHERE `ID` ='$personID'";
	$result= mysql_query($sql);
	$row = mysql_fetch_array($result);
	$personFName = $row["Fname"];
	$personLName = $row["Lname"];
	
	echo "<html>
<body class='main'>

<FONT class='mainFont'>
  <CENTER>
    <!--<p><img src = 'images/apopic.jpg'></p>-->
    <br>
	<br>
	  <div class='modifyAdminTable'>
	  <b class='b1f'></b><b class='b2f'></b><b class='b3f'></b><b class='b4f'></b>
	  <div class='contentf'>
		  <div class = 'headerText'>
				Switch Midweek Coordinators:
		  </div>
		  <div class='modifyAdminDesc'>Are you sure you want to switch being Midweek Coordinator with ".$personFName." ".$personLName."?</div>
		  <div style='padding-bottom: 0.5'><form action='switchAdmin.php?new_MC=$personID' method='post'>
			<input type='radio' id='drive' name='drive' value='yes'/> Yes
			<input type='radio' id='drive' name='drive' value='no'/> No<br/>
			<input type='submit' value='Submit' class='loginButton'/><input type='reset' class='loginButton'/>
		  </form></div>
	  </div>
	  <b class='b4f'></b><b class='b3f'></b><b class='b2f'></b><b class='b1f'></b></div>
  </CENTER>
</FONT>
</body>
</html>
";

	require("footer.php");
	footer();
mysql_close($link);
?>